import request from '@/utils/request';

// 投资人管理
// 投标信息数据库
export function getBaseInfo(params) {
  return request({
    url: 'hermes/customer/baseInfo/query',
    method: 'get',
    params,
  });
}

export function getProductBaseInfo(params) {
  return request({
    url: 'hermes/product/baseInfo/query',
    method: 'get',
    params,
  });
}

export function getCustomerBaseInfoAdd(params) {
  return request({
    url: 'hermes/customer/baseInfo/addCollect',
    method: 'get',
    params,
  });
}

export function getCustomerBaseInfoRemove(params) {
  return request({
    url: 'hermes/customer/baseInfo/removeCollect',
    method: 'get',
    params,
  });
}

export function getProductBaseInfoAdd(params) {
  return request({
    url: 'hermes/product/baseInfo/addCollect',
    method: 'get',
    params,
  });
}

export function getProductBaseInfoRemove(params) {
  return request({
    url: 'hermes/product/baseInfo/removeCollect',
    method: 'get',
    params,
  });
}

export function getCreditInfo(params) {
  return request({
    url: 'hermes/customer/credit/getCreditInfo',
    method: 'get',
    params,
  });
}

export function getQueryView(params) {
  return request({
    url: 'hermes/customer/baseInfo/queryView',
    method: 'get',
    params,
  });
}

export function getProductQueryView(params) {
  return request({
    url: 'hermes/product/baseInfo/queryView',
    method: 'get',
    params,
  });
}

export function getCreditSubType(params) {
  return request({
    url: 'hermes/customer/credit/getCreditSubType',
    method: 'get',
    params,
  });
}

export function getCreditInfoDetails(params) {
  return request({
    url: 'hermes/customer/credit/getCreditInfoDetails',
    method: 'get',
    params,
  });
}

export function getPage(params) {
  return request({
    url: 'hermes/customer/news/page',
    method: 'get',
    params,
  });
}

export function getBusinessTypes() {
  return request({
    url: 'hermes/blackWhite/businessTypes',
    method: 'get',
  });
}
export function getselectCustomer(params) {
  return request({
    url: 'hermes/blackWhite/selectCustomer',
    method: 'get',
    params,
  });
}
export function getselectByCustomer(params) {
  return request({
    url: 'hermes/blackWhite/selectByCustomer',
    method: 'get',
    params,
  });
}
export function insertBatch(data) {
  return request({
    url: 'hermes/blackWhite/insertBatch',
    method: 'post',
    data,
  });
}
export function getList(params) {
  return request({
    url: 'hermes/customer/list',
    method: 'get',
    params,
  });
}
export function getQuantityTop(params) {
  return request({
    url: 'hermes/manageCockpit/getQuantityTop',
    method: 'get',
    params,
  });
}
export function getCreditInfoDetailsStatics(params) {
  return request({
    url: 'hermes/customer/credit/getCreditInfoDetailsStatics',
    method: 'get',
    params,
  });
}
export function cooperateCustomer(params) {
  return request({
    url: 'hermes/WorkBench/cooperateCustomer',
    method: 'get',
    params,
  });
}
export function myCustomer(params) {
  return request({
    url: 'hermes/WorkBench/myCustomer',
    method: 'get',
    params,
  });
}
export function operatingData(params) {
  return request({
    url: 'hermes/WorkBench/operatingData',
    method: 'get',
    params,
  });
}
export function reminder(params) {
  return request({
    url: 'hermes/WorkBench/reminder',
    method: 'get',
    params,
  });
}
export function todo(params) {
  return request({
    url: 'hermes/WorkBench/todo',
    method: 'get',
    params,
  });
}
export function publicOpinionInformation(params) {
  return request({
    url: 'hermes/WorkBench/publicOpinionInformation',
    method: 'get',
    params,
  });
}
export function customerComprehensiveContribution(params) {
  return request({
    url: 'hermes/WorkBench/customerComprehensiveContribution',
    method: 'get',
    params,
  });
}
export function reminderTypes(params) {
  return request({
    url: 'hermes/reminder/types',
    method: 'get',
    params,
  });
}
export function reminderQuery(params) {
  return request({
    url: 'hermes/reminder/query',
    method: 'get',
    params,
  });
}
export function updateStatue(params) {
  return request({
    url: 'hermes/reminder/updateStatue',
    method: 'post',
    params,
  });
}
export function custNewsInfo(data) {
  return request({
    url: 'hermes/custNewsInfo/page',
    method: 'post',
    data,
  });
}
export function todoBacklog(data) {
  return request({
    url: 'hermes/todoBacklog/page',
    method: 'post',
    data,
  });
}
export function updateCustNews(data) {
  return request({
    url: 'hermes/custNewsInfo/update',
    method: 'post',
    data,
  });
}
export function updateInsert(data) {
  return request({
    url: 'hermes/todoBacklog/insert',
    method: 'post',
    data,
  });
}
export function haveRead(data) {
  return request({
    url: 'hermes/customer/news/haveRead',
    method: 'put',
    data,
  });
}

export function updateCustomer(data) {
  return request({
    url: 'hermes/customer/baseInfo/update',
    method: 'put',
    data,
  });
}

export function updateProductCustomer(data) {
  return request({
    url: 'hermes/product/baseInfo/update',
    method: 'put',
    data,
  });
}